/*
 * Copyright 2010. 
 * 
 * This document may not be reproduced, distributed or used 
 * in any manner whatsoever without the expressed written 
 * permission of xrkol Corp. 
 * 
 * $Rev: Rev $
 * $Author: Author $
 * $LastChangedDate: LastChangedDate $
 *
 */

package com.xrkol.sharelib.dao.impl;

import java.util.List;

import org.springframework.stereotype.Repository;

import com.xrkol.sharelib.dao.ReplyDao;
import com.xrkol.sharelib.entity.Reply;

/**
 * @author peng.xia
 *
 */
@Repository
public class ReplyDaoImpl extends BaseDaoImpl<Reply,String> implements ReplyDao{

    @Override
    public List<Reply> getByTopicId(String id, Integer page) {
        String queryString="from Reply r where r.topicId = ?";
        return executeQueryWithPagination(queryString, " order by r.createAt asc", page, id);
    }

}
